/*!
 * @file setContainer.cpp
 * @brief Ciało setContainer.hh
 */

#include "engine/set/setContainer.hh"
using namespace std;

/*--------------------------------------------------------------------------*/

setContainer::setContainer() {
	this->s = "undefined";
	this->i = -1;
	this->f = -1;
}

/*--------------------------------------------------------------------------*/

setContainer::setContainer(string s) {
	this->set(s);
}

/*--------------------------------------------------------------------------*/

setContainer::setContainer(int i) {
	this->set(i);
}

/*--------------------------------------------------------------------------*/

setContainer::setContainer(float d) {
	this->set(d);
}

/*--------------------------------------------------------------------------*/

void setContainer::set(string s) {
	this->s = s;
	stringstream ss;

	ss << s;
	ss >> this->i;

	ss << s;
	ss >> this->f;
}

/*--------------------------------------------------------------------------*/

void setContainer::set(int i) {
	stringstream ss;
	ss << i;
	ss >> this->s;

	this->i = i;
	this->f = i;
}

/*--------------------------------------------------------------------------*/

void setContainer::set(float d) {
	stringstream ss;
	ss << d;
	ss >> this->s;

	this->i = d;
	this->f = d;
}

/*--------------------------------------------------------------------------*/
